package com.moyun.service.system.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.moyun.model.po.system.SysRoleEntity;
import com.moyun.mapper.system.SysRoleMapper;
import com.moyun.service.system.SysRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 角色表 服务实现类
 * </p>
 *
 * @author yangboxuan
 * @since 2021-07-01
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRoleEntity> implements SysRoleService {

    @Override
    public List<SysRoleEntity> selectRolesByUserId(Integer userId) {
        List<SysRoleEntity> roles = this.baseMapper.selectRolesByUserId(userId);
        return roles;
    }

}
